const creditHtml = `©2023 高德软件- <span>审图号：GS(2021)6375号</span>
- 甲测资字11111093 - <a href="https://map.amap.com/doc/serviceitem.html" target="_blank" trace="tos">服务条款</a> `
export let mapOptions = {
    scene: {
      center: {
        lat: 29.621803,
        lng: 106.476156,
        alt: 1347.7,
        heading: 8.4,
        pitch: -39.1,
      },
      showSkyBox: false,
      showSun: false,
      showMoon: false,
      showSkyAtmosphere: false,
      fxaa: true,
      globe: {
        baseColor: " #000000", // 地球地面背景色
        showGroundAtmosphere: false,
        enableLighting: false,
      },
      clock: {
        currentTime: "2017-08-25 08:00:00",
      },
      requestRenderMode: true,
      cameraController: {
        zoomFactor: 10,
      },
    },
    basemaps: [
        {
          name: "高德电子",
          icon: "img/basemaps/gaode_vec.png",
          type: "gaode",
          layer: "vec",
          show: true,
          credit: creditHtml
        },
        {
          name: "高德影像",
          icon: "img/basemaps/gaode_img.png",
          type: "group",
          layers: [
            { name: "底图", type: "gaode", layer: "img_d" },
            { name: "注记", type: "gaode", layer: "img_z" }
          ],
          credit: creditHtml
        }
      ],
    // basemaps: [{ name: "天地图", type: "tdt", layer: "img_d", show: true }],
    terrain: {
      name: "地形",
      url: "https://www.cqkckc.com/grid/hhgw/hhgw_dem_cq",
      show: true,
    },
    control: {
      baseLayerPicker: false, // basemaps底图切换按钮
      homeButton: false, // 视角复位按钮
      sceneModePicker: false, // 二三维切换按钮
      navigationHelpButton: false, // 帮助按钮
      fullscreenButton: false, // 全屏按钮
      contextmenu: { hasDefault: true }, // 右键菜单
    },
    templateValues: {
      //模型地址
      model: "https://www.cqkckc.com",
      //geoServer地址
      geoserver: "https://www.cqkckc.com",
      //影像地址
      Image: "https://www.cqkckc.com",
    },
    layers: [
      // 影像图
      {
        type: "group",
        pid: 3,
        name: "正射影像",
        layers: [
          {
            type: "xyz",
            name: "td-影像图层",
            url: "{Image}/grid/hhgw/hhgw_td/{z}/{x}/{y}.png",
            proxy: "",
          },
          {
            type: "xyz",
            name: "xj-影像图层",
            url: "{Image}/grid/hhgw/hhgw_xj/{z}/{x}/{y}.png",
            proxy: "",
          },
        ],
        show: true,
        flyTo: false,
      },
      {
        name: "管线",
        icon: "img/basemaps/blackMarble.png",
        type: "wms",
        url: "{geoserver}/geoserver/hhgw/wms",
        layers: "hhgw:pipe_line",
        crs: "EPSG:4545",
        highlight: { type: "click", outlineEffect: true, width: 8, color: "#FFFF00" },
        parameters: {
            transparent: true,
            format: "image/png"
        },
        minimumTerrainLevel: 12,
        pop: "all",
        show: true,
        flyTo: false,
    },
    {
        name: "管点",
        icon: "img/basemaps/blackMarble.png",
        type: "wms",
        url: "{geoserver}/geoserver/hhgw/wms",
        layers: "hhgw:pipe_point",
        crs: "EPSG:4545",
        highlight: { type: "click", outlineEffect: true, width: 8, color: "#FFFF00" },
        parameters: {
            transparent: true,
            format: "image/png"
        },
        minimumTerrainLevel: 12,
        pop: "all",
        show: true,
        flyTo: false
    },
      { name: "注解", type: "tdt", layer: "img_z", show: false },
    ],
  };